﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Server {
    class Program {
        
        static void Main(string[] args) {
            
            // Address of hosting Service
            Uri baseAddress = new Uri("http://localhost:8080/SvnService");
            Type serviceType = typeof(Service.SvnService);

            // Lifecycle oh hosting Service
            using (ServiceHost host = new ServiceHost(serviceType, baseAddress)){
                host.Open();
                Console.WriteLine("SvnService started at address: " + baseAddress);
                Console.ReadLine();
                host.Close();
            }

        }

    }
}
